<?php
class PromotionsController extends Zend_Controller_Action
{	
    public function init() {
        $SS = new Zend_Session_Namespace ('Default');
        Zend_Session::namespaceUnset('Default');
    }
   
    public function detailAction() {
        $model                    = new Vina_Model_Promotions();
        $id                     =  $this->_request->getParam('id',0);
        $data = $model->find($id)->toArray();
        $this->view->title = $data['title'];
        $otherData = $model->fetchListToArray("id != $id",'id desc', 8);
        $this->view->data = $data;
        $this->view->otherData = $otherData;
    }
    	
}
